package oop;

public class Rect extends Shape{
    public int length;
    public int width;
    public Rect(int length, int width){
        this.length = length;
        this.width = width;
    }
    public double girth(){
        return 2*(length+width);
    }
    public double area(){
        return length*width;
    }
}
